import axios from '../../index'
// import qs from 'qs'




// export const addressBookAxios = () => {
//   return axios({
//     url: api + '/selectEmployeeList',
//     method: 'POST',
//     data:
//     {
//       "dept_id": 0,
//       "employee_address": "string",
//       "employee_birthday": "2021-12-03T06:15:05.157Z",
//       "employee_card": 0,
//       "employee_email": "string",
//       "employee_emergency_person": "string",
//       "employee_emergency_tel": 0,
//       "employee_head": "string",
//       "employee_hometown": "string",
//       "employee_id": 0,
//       "employee_login": "string",
//       "employee_name": "string",
//       "employee_password": "string",
//       "employee_role": "string",
//       "employee_sal": "string",
//       "employee_sex": 0,
//       "employee_state": 0,
//       "employee_tel": 0
//     }

//   })
// }

// export const addressBookAxios2 = () => {
//   return axios({
//     url: api + '/selectDept',
//     method: 'GET',
//     params: {
//       "code": 0,
//       "count": 0,
//       "data": {},
//       "msg": "string"
//     }
//   })
// }

//搜索接口
export const searchAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            data: {},
            currentPage,
            pageSize
        }
    })
}

// 列表渲染接口
export const listDeptAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/selectEmployee',
        method: 'POST',
        data: {
            currentPage,
            pageSize
        }
    })
}

//总经办接口
export const GeneralManagerAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "1" }
            },
            currentPage,
            pageSize
        }
    })
}

//财务部接口
export const FinanceDeptAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "2" }
            },
            currentPage,
            pageSize
        }
    })
}
//业务一部接口
export const BusinessOneAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "3" }
            },
            currentPage,
            pageSize
        }
    })
}
//业务二部接口
export const BusinessTwoAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "4" }
            },
            currentPage,
            pageSize
        }
    })
}
//渠道招商部接口
export const ChannelDepAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "5" }
            },
            currentPage,
            pageSize
        }
    })
}
//营销部接口 
export const MaketingDepAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "6" }
            },
            currentPage,
            pageSize
        }
    })
}
//采购部接口
export const PurchasingDepAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "7" }
            },
            currentPage,
            pageSize
        }
    })
}
//客服部接口
export const CustomerServerAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "dept": { "dept_id": "8" }
            },
            currentPage,
            pageSize
        }
    })
}
// //已离职列表接口
export const LeaveListAxios = (currentPage, pageSize) => {
    return axios({
        url: '/Emp/searchEmployee',
        method: 'POST',
        data: {
            "data": {
                "employee": { "demployee_state": "3" }
            },
            currentPage,
            pageSize
        }
    })
}